package com.wing.purchase.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 采购订单明细
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pur_purchase_order_detail")
public class PurchaseOrderDetail extends BaseEntity<PurchaseOrderDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 请购单详情id
     */
    @TableField(exist = false)
    private Long quotationDetailId;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 订单明细编号
     */
    private String code;

    /**
     * 采购订单ID
     */
    private Long purchaseOrderId;


    /**
     * 规格型号
     */
    private String specifications;

    /**
     * 计量单位
     */
    private String unitName;

    /**
     * 数量
     */
    private BigDecimal quantity;

    /**
     * 税率
     */
    private BigDecimal rate;

    /**
     * 含税单价
     */
    private BigDecimal taxPrice;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 税额
     */
    private BigDecimal tax;

    /**
     * 合计金额
     */
    private BigDecimal totalAmount;

    /**
     * 已发货数量
     */
    private BigDecimal hasDeliveryQuantity;

    /**
     * 需求数量
     */
    private BigDecimal needQuantity;

    /**
     * 物料id
     */
    private Long productDetailId;

    /**
     * 商品名称
     */
    private String productName;

}
